/*
 *  Filename: duvoice.h
 *  Function: duvoice header file
 *  Created: 2017-05-06
 *  Version: 1.0
 *  Authror: Bin
 */

#ifndef DUVOICE_H
#define DUVOICE_H

/*-------- Types --------*/
typedef struct {
    char *token;
    char *speech;
    char *text;
} duVoice;

/*-------- Exported functions --------*/
duVoice *duVoice_Init();
void duVoice_Delete(duVoice *handle);
void duVoice_SetSpeech(duVoice *handle, const char *speech);
void duVoice_SetText(duVoice *handle, const char *text);
void duVoice_Cleanup(duVoice *handle);
char *duVoice_Recognize(duVoice *handle);
char *duVoice_Synthesize(duVoice *handle);

#endif
